﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;
using Film.Repository;
using Film.Common;

namespace PhuongDoAn.Admin.Film
{
    public partial class Default : AdminWebBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        [DirectMethod]
        public void Delete(int movieID)
        {
            tblMovieRepository movieRepository = new tblMovieRepository();
            movieRepository.Delete(movieID);
            movieRepository.SubmitChanges();
            THONG_BAO_CAP_NHAT("Xóa film thành công");
        }
    }
}